﻿using FactoryLib.abstracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FactoryLib.services.AbstractFactory
{
    public class AbstractGameFactory : IGameFactory
    {
        IGameProvider _gameProvider;
        public void initprovider(IGameProvider provider)
        {
            _gameProvider = provider;
        }

        public void loadResource()
        {
            _gameProvider.GameStart();
            _gameProvider.GameEnd();
        }
    }
}
